import request from '@/utils/request'

// 查询技师管理列表
export function listTechnician(query) {
  return request({
    url: '/technician/technician/list',
    method: 'get',
    params: query
  })
}

// 查询技师管理详细
export function getTechnician(id) {
  return request({
    url: '/technician/technician/' + id,
    method: 'get'
  })
}

// 新增技师管理
export function addTechnician(data) {
  return request({
    url: '/technician/technician',
    method: 'post',
    data: data
  })
}

// 修改技师管理
export function updateTechnician(data) {
  return request({
    url: '/technician/technician',
    method: 'put',
    data: data
  })
}

// 删除技师管理
export function delTechnician(id) {
  return request({
    url: '/technician/technician/' + id,
    method: 'delete'
  })
}

// 关联项目管理
export function selTechnician(data) {
  return request({
    url: '/technician/technician/selectItem',
    method: 'post',
	data: data
  })
}

// 取消项目管理
export function selTechDela(data) {
  return request({
    url: '/technician/technician/updateItem',
    method: 'post',
	data: data
  })
}

// 提交关联项目
export function assTechItem(data) {
  return request({
    url: '/technician/technician/addItem',
    method: 'post',
	data: data
  })
}

// 查询服务记录
export function selectTechItem(data) {
  return request({
    url: '/technician/technician/selectTechnicianOrder',
    method: 'post',
	data: data
  })
}




// 新增技师查询服务记录
export function selectAddTechItem(data) {
  return request({
    url: '/technician/technician/selectAddNotRelevancyItemList',
    method: 'post',
	data: data
  })
}

// 新增技师查询已选后服务记录
export function selectIsTechItem(data) {
  return request({
    url: '/technician/technician/selectAddIsRelevancyItemList',
    method: 'post',
	data: data
  })
}


// 新增技师查询已选后服务记录
export function selectUserTechItem(data) {
  return request({
    url: '/technician/technician/selectUserNotRelevancyTechnicianList',
    method: 'post',
	data: data
  })
}


